
package com.gamatechno.solodestinationnew;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;

public class UploadGalleryActivity extends BaseActivity implements OnClickListener {

    private ImageView img;
    private EditText etCaption;
    private Button btnSubmit;
    private String imgBase64;
    private byte[] bytes;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_upload_gallery);

        bytes = getIntent().getByteArrayExtra("img");
        Bitmap bmp = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);

        // imgBase64 = getIntent().getExtras().getString("img");

        img = (ImageView) findViewById(R.id.img_gallery_upload);
        etCaption = (EditText) findViewById(R.id.input_description_gallery);
        btnSubmit = (Button) findViewById(R.id.btn_submit_gallery);

        img.setImageBitmap(bmp);

        btnSubmit.setOnClickListener(this);

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // getMenuInflater().inflate(R.menu.upload_gallery, menu);
        return true;
    }

    @Override
    public void onClick(View arg0) {

    }

}
